<%--
  Created by IntelliJ IDEA.
  User: 17534
  Date: 2020/9/15
  Time: 12:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<html>
<head>
    <title>更新</title>
</head>
<body>
<form method="post" action="/updatebills">
    <input type="hidden" name="id" value="${bills.id}">
    <p>
        类型：
        <c:forEach items="${types}" var="type">
            <input type="radio" value="${type.id}" ${type.id==bills.typeid?'checked':''} name="typeid">${type.bname}
        </c:forEach>
    </p>
    <p>
        标题：<input type="text" style="width: 500px" name="title" value="${bills.title}">
    </p>
    <p>
        日期：<input type="text" name="bilitime" value="<fmt:formatDate value="${bills.bilitime}" pattern="yyyy-MM-dd"></fmt:formatDate>">
        金额：<input type="text" name="price" value="${bills.price}">
    </p>
    <p>
        说明：<textarea cols="50" rows="4" name="explains">${bills.explains}</textarea>
    </p>
    <input type="reset" value="重置">
    <input type="submit" value="提交">
</form>
</body>
</html>
